<%-- 
    Document   : Login
    Created on : 17/Nov/2009, 0:03:48
    Author     : ziza
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean class="Cliente.WebGestor" id="webMyTwi" scope="session"/>

<%
if("Logout".equalsIgnoreCase(request.getParameter("logout"))){
    webMyTwi.logOut();
    session.invalidate();
}
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>MyTwitter</title>
    </head>

    <body style="background-image:url('IMG/mytwitter-bg.png'); background-repeat:repeat; background-attachment:fixed">
        <br><br><br><br><br><br><br><br><br><br>
        <div align="center">
            <table>
                <tbody>
                    <tr>
                        <td><img src="IMG/mytwitter-logo.png" alt="mytwitter-logo" align="left"/></td>
                        <td>
                            <form name="Login" action="MyTwitter.jsp" method="post" >
                                <table border="0">
                                    <tbody>
                                        <tr>
                                            <td><img src="IMG/mytwitter-username.png" alt="mytwitter-username" align="right"/></td>
                                            <td><input type="text" name="nickName" size="10" style="background:transparent; background-image:url(IMG/bg-txt.png);background-repeat:repeat"></td>
                                        </tr>
                                        <tr>
                                            <td><img src="IMG/mytwitter-password.png" alt="mytwitter-password" align="right"/></td>
                                            <td><input type="password" name="passWord" size="10" style="background:transparent; background-image:url(IMG/bg-txt.png);background-repeat:repeat"></td>
                                        </tr>
                                    </tbody>
                                </table>
                                <input type="submit" name="Operacao" value="Login">
                            </form>
                            <form name="Register" action="Registry.jsp" method="post" >
                                <input type="submit" name="Operacao" value="Register">
                            </form>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>        
    </body>
</html>

